﻿using Newtonsoft.Json;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BasicInformation.Domain
{
    /// <summary>
    /// 承运商管理
    /// </summary>
    public class CarrierModel : BaseEntity
    {
        /// <summary>
        /// 承运商Id(主键标识)
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int CarrierId { get; set; }
        /// <summary>
        /// 承运商编号
        /// </summary>
        
        public string CarrierCode { get; set; }
        /// <summary>
        /// 承运商名称
        /// </summary>
        [SugarColumn(Length = 50)]
        //[Required(ErrorMessage = "用户名不能为空")] // 需引用System.ComponentModel.DataAnnotations
        //[StringLength(50, ErrorMessage = "用户名长度不能超过50")], IsRequired = true
        public string CarrierName { get;set;}
        /// <summary>
        /// 备注
        /// </summary>
         [SugarColumn(Length = 100)]
        public string? CarrierRemark {  get; set; }

    }
}
